package yannan.voiplock4ble.bean.ble;

import yannan.voiplock4ble.utils.ByteUtils;
import yannan.voiplock4ble.utils.TimeUtils;

/**
 * 说明：门锁时间
 * 作者：mainTel
 * 时间：2016/12/5 20:38
 * 备注：
 */
public class LockTime extends BaseBleResponse {

    public String time;

    public LockTime(byte[] response) {
        super(response);
        time = TimeUtils.getDateToString2(
                Long.parseLong(
                        ByteUtils.bytesToHexString(
                                new byte[]{content[3], content[2], content[1], content[0]}),16) * 1000);
    }
}
